<div class="content-wrapper">
    <section class="content-header">
        <h1>消息列表</h1>
        <ol class="breadcrumb">
            <li><a href="/admin"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li class="active">客户管理</li>
            <li class="active">消息管理</a></li>
            <li class="active">消息列表</li>
        </ol>
    </section>
    <section class="content">
        <div class="row">
            <div class="box box-default">
                <div class="box-header with-border">
                </div>
                <div class="box-body">
                    <!-- The time line -->
                    <ul class="timeline">
                        <if condition="count($msgList) eq 0"><li><div class="timeline-body text-center">暂无消息通知...</div></li></if>
                        <!-- timeline item -->
                        <foreach name="msgList" item="msg">
                            <li>
                                <i class="fa fa-comments fa-x"></i>

                                <div class="timeline-item">
                                    <span class="time"><i class="fa fa-clock-o"></i> {$msg.create_time|friend_date}</span>

                                    <h3 class="timeline-header">
                                        <a href="#">系统消息</a>
                                        <if condition="$msg.status eq 1">
                                                <label class="label label-success">已读</label>
                                            <else />
                                                <label class="label label-warning">未读</label>
                                        </if>
                                    </h3>

                                    <div class="timeline-body">{$msg.message}</div>

                                    <div class="timeline-footer">

                                        <php>if($msg['type']==9){ </php>
                                            <a class="btn btn-primary btn-xs" href="/admin/customer/customerDetail?id={$msg.customer_id}">查看详情</a>
                                        <php> }elseif($msg['type']==7){ </php>
                                            <a class="btn btn-primary btn-xs" href="/admin/order/orderDetail?id={$msg.object_id}">查看详情</a>
                                        <php> }elseif(in_array($msg['type'],[1,3,5])){ </php>
                                            <a class="btn btn-primary btn-xs" href="/admin/approval/orderList?id={$msg.object_id}">查看详情</a>
                                        <php> }else{ </php>
                                            <a class="btn btn-primary btn-xs"></a>
                                        <php>}</php>

                                    </div>
                                </div>
                            </li>
                        </foreach>
                        <!-- END timeline item -->
                    </ul>
                </div>
            </div>
            <div class="box-footer clearfix">{$page_html}</div>
        </div>
    </section>
</div>